package com.kgis.fm.business.event
{
	import com.kgis.mvc.CommandCompletionEvent;
	import flash.events.Event;

	[Response(name="{RETURN_ID}", type="com.kgis.mvc.CommandCompletionEvent")]
	public class FmMetaDataEvent extends Event
	{
		public static const REQUEST_ID:String="FmMetaDataEvent_Request";
		public static const RETURN_ID:String="FmMetaDataEvent_Return";

		public static const TYPE_GET_FMMETADATA:String="getFmMetaData";

		private var _actionType:String;

		public function FmMetaDataEvent(actionType:String, type:String=null)
		{
			var typeId:String=type;
			if (type == null)
			{
				typeId=REQUEST_ID;
			}
			super(typeId);
			_actionType=actionType;
		}

		public override function clone():Event
		{
			return new FmMetaDataEvent(actionType, type);
		}

		public function get actionType():String
		{
			return _actionType;
		}
	}
}